package com.api.user.model;

import java.io.Serializable;
import javax.persistence.*;

@Table(name = "order_commditys")
public class OrderCommditys implements Serializable {
    @Id
    @Column(name = "order_id")
    private Long orderId;

    /**
     * 规格Id
     */
    @Column(name = "commodity_specs_id")
    private Long commoditySpecsId;

    /**
     * 商品数量
     */
    private Integer amount;

    private static final long serialVersionUID = 1L;

    /**
     * @return order_id
     */
    public Long getOrderId() {
        return orderId;
    }

    /**
     * @param orderId
     */
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    /**
     * 获取规格Id
     *
     * @return commodity_specs_id - 规格Id
     */
    public Long getCommoditySpecsId() {
        return commoditySpecsId;
    }

    /**
     * 设置规格Id
     *
     * @param commoditySpecsId 规格Id
     */
    public void setCommoditySpecsId(Long commoditySpecsId) {
        this.commoditySpecsId = commoditySpecsId;
    }

    /**
     * 获取商品数量
     *
     * @return amount - 商品数量
     */
    public Integer getAmount() {
        return amount;
    }

    /**
     * 设置商品数量
     *
     * @param amount 商品数量
     */
    public void setAmount(Integer amount) {
        this.amount = amount;
    }
}